package structures;

public class LockNode {
	private Lock lock;
	private Object object;
	private int transactionId;
	private int state;
	

	public LockNode(Lock lock, Object object, int transactionId){
		this.lock = lock;
		this.object = object;
		this.transactionId = transactionId;
		this.state = 1;
	}
	
	public int getState() {
		return state;
	}
	
	public void setState(int state) {
		this.state = state;
	}
	
	public Lock getLock() {
		return lock;
	}
	public void setLock(Lock lock) {
		this.lock = lock;
	}
	public Object getObject() {
		return object;
	}
	public void setObject(Object object) {
		this.object = object;
	}
	public int getTransactionId() {
		return transactionId;
	}
	public void setTransactionId(int transactionId) {
		this.transactionId = transactionId;
	}

}
